package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.dto.report.DeliveryPerformance;
import com.blacksheep.mtm.pojo.manager.TbOrderDelivery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbOrderDeliveryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TbOrderDelivery record);

    int insertSelective(TbOrderDelivery record);

    TbOrderDelivery selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbOrderDelivery record);

    int updateByPrimaryKey(TbOrderDelivery record);

    List<DeliveryPerformance> selectDeliveryPerfor(@Param("search") String search, @Param("minDate") String minDate,
                                                   @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                                   @Param("orderDir") String orderDir);

    int selectDeliveryPerforCount();
}